import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
from random import randint

def scapy_ping_one(host):
    id_ip=randint(1,65535)
    id_ping=randint(1,65535)
    seq_ping=randint(1,65535)
    packet=IP(dst=host,ttl=64,id=id_ip)/ICMP(id=id_ping,seq=seq_ping)/b'Welcome to chage'
    result =sr1(packet)

    result.show()

if __name__ =='__main__':
    scapy_ping_one('101.132.76.252')